//学生系统
#include<iostream>
#include<string>

using namespace std;

class Student
{
private:
	string name;//姓名
	int age;//年龄
	int id;//学号
	double First,Second,Third,Fouth;//成绩
public:
	Student(string name, int age, int id, int First, int Second, int Third, int Fouth)
	{
		this->name = name;
		this->age = age;
		this->id = id;
		this->First = First;
		this->Second = Second;
		this->Third = Third;
		this->Fouth = Fouth;
	}
	
	void output()
	{
		cout << this->name << "," << this->age << "," << this->id << "," 
			 << (First + Second + Third + Fouth) / 4 << endl;
	}
};


int main()
{
	string name;
	int age;
	int id;
	double First,Second,Third,Fouth;
	cin >> name >> age >> id;
	cin >> First >> Second >> Third >> Fouth;
	Student s(name,age,id, First, Second,Third, Fouth);
	s.output();
	system("pause"); 
	return 0;
}
